<?php
/**
 * Holds class Enum_Defined
 *
 * @author daantimmer
 *
 * @package Library
 * @subpackage Enum
 */

/**
 * Basic class for creating Enumerated types.
 *
 * This version uses an associative array. The key is used as a unique identifier.
 *
 * @author daantimmer
 */
class Enum_Defined extends Enum {
    public function __construct( /*array*/ $itms ) {
        foreach( $itms as $name => $enum )
        	$this->{$name} = $enum;
            //$this->add($name, $enum);
    }
}